package com.cy.ppj.dao.mapper.product;

import com.cy.ppj.model.query.TagAdminQuery;
import com.cy.ppj.model.vo.TagDetailAdminVO;
import com.cy.ppj.model.domian.product.Tag;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import tk.mybatis.mapper.common.BaseMapper;

import java.util.List;

@Mapper
public interface TagMapper extends BaseMapper<Tag> {

    int selectAdminTagCount(TagAdminQuery tagAdminQuery);

    List<Tag> selectAdminTags(TagAdminQuery tagAdminQuery);

    List<Tag> selectTagsByTypeId(@Param("typeId") Long typeId);
    
    List<Tag> queryTagByProductId(@Param("productId") Long productId);
    
    TagDetailAdminVO selectTagDetailAdmin(@Param("tagId") Long tagId);
}
